//
//  StateTest.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/8.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "StateTest.h"
#import "State.h"
#import "StateContext.h"

@implementation StateTest

-(void)startState
{
    StateContext * context = [[StateContext alloc]init];
    State * state = [State new];
    [context setState:state];
    //
    [state setValue:@"state1"];
    [context method];
    //
    [state setValue:@"state2"];
    [context method];
}

@end
